package com.app.piemoment;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

public class GuidPageView extends LinearLayout {

	private LinearLayout middle_view;

	public GuidPageView(Context context) {
		super(context);
		LayoutInflater inflater = (LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

		View view = inflater.inflate(R.layout.guiditem1, this, true);
		middle_view = (LinearLayout) view.findViewById(R.id.middleview);

	}

	public GuidPageView(Context context, AttributeSet attrs) {
		super(context, attrs);

		LayoutInflater inflater = (LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

		View view = inflater.inflate(R.layout.guiditem1, this, true);
		middle_view = (LinearLayout) view.findViewById(R.id.middleview);

	}

	public void setImageBack(int resid) {
		middle_view.setBackgroundResource(resid);
	}

}
